package com.woniu.client;


import com.woniu.model.Result;
import com.woniu.client.dto.DepotDetialDto;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(name = "depot-server",path = "/depot")//这里填目标服务名
public interface DepotClient {

    @GetMapping("/depotDetial/findByStationId/{id}")
    @ApiOperation("根据站点id查询仓库信息")
    public Result<List<DepotDetialDto>> findByStationId(@PathVariable("id") Integer id);


}
